package request

import "gin-admin/common/dto/request"

type CreateRoleRequest struct {
	Name        string `json:"name" form:"name" binding:"required"`
	Code        string `json:"code" form:"code" binding:"required"`
	Description string `json:"description" form:"description"`
}

type ModifyRoleRequest struct {
	ID          string `json:"id" form:"id" binding:"required"`
	Name        string `json:"name" form:"name"`
	Code        string `json:"code" form:"code"`
	Description string `json:"description" form:"description"`
}

type RoleDetailRequest struct {
	ID string `json:"id" form:"id" binding:"required"`
}

type RoleListRequest struct {
	PaginationRequest
	Name string `json:"name" form:"name"`
	Code string `json:"code" form:"code"`
}

type RoleQueryRequest struct {
	request.BaseQueryRequest
	Name string `json:"name" form:"name"`
	Code string `json:"code" form:"code"`
}
